<?php
/**
 * Created by PhpStorm.
 * User: zhj
 * Date: 2019/3/20
 * Time: 17:58
 */
namespace app\api\controller;


class Collection extends ApiBase
{
    public function index()
    {
        echo 11;exit;
    }

    public function setSceneryCollection()
    {


        if(!session('userid')){
            return $this->apiReturn(['code'=>2,'msg'=>'请先登录~','url'=>url('Login/index')]);
        }
        $id = input('post.id');
        if(!$id){
            return  $this->apiReturn(['code'=>0,'msg'=>'id错误']);
        }
        $res = $this->collection($id,4);
        return $res;
    }
}